<?php
echo "<table border='1' width='100%'>";
$i = 0;
while ($i <= 10):
    $j = 0;
    echo "<tr>";
    $i++;
    while ($j <= 10):
        echo "<td>{$j}</td>";
        $j++;
    endwhile;
    echo "</tr>";
endwhile;
echo "</table>";